import request from '@/utils/request'

// 查询实时K线监控列表
export function listRealtimeKlinebak(query) {
  return request({
    url: '/realtimeKline/realtimeKlinebak/list',
    method: 'get',
    params: query
  })
}

// 查询实时K线监控详细
export function getRealtimeKlinebak(id) {
  return request({
    url: '/realtimeKline/realtimeKlinebak/' + id,
    method: 'get'
  })
}

// 新增实时K线监控
export function addRealtimeKlinebak(data) {
  return request({
    url: '/realtimeKline/realtimeKlinebak',
    method: 'post',
    data: data
  })
}

// 修改实时K线监控
export function updateRealtimeKlinebak(data) {
  return request({
    url: '/realtimeKline/realtimeKlinebak',
    method: 'put',
    data: data
  })
}

// 删除实时K线监控
export function delRealtimeKlinebak(id) {
  return request({
    url: '/realtimeKline/realtimeKlinebak/' + id,
    method: 'delete'
  })
}
